﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>

@{
    ViewBag.Title = "ScoreReport";
}

<div id="m-title">
    <h2>评分汇总</h2>
    @using (Html.BeginForm("Export2Excel", "Comment", FormMethod.Post))
    {
        <div id="m-op">
            <label>学科组：</label>
            @Html.DropDownList("SubjectID")
            <input type="button" id="btnGenerate" value="学科组评分汇总表" onclick="GenerateReport();" class="u-btn f-btn-long" /><span>&nbsp;&nbsp;&nbsp;</span>
            <input type="button" id="btnGradeReport" value="评分及等第汇总表" onclick="GenerateGradeReport();" class="u-btn f-btn-long" /><span>&nbsp;&nbsp;&nbsp;</span>
            <label>评委组：</label>
            @Html.DropDownList("ExpertGroupID")
            <input type="button" id="btnGenerateByExpGroup" value="评委组评分汇总表" onclick="GenerateReportByExpGroup();" class="u-btn f-btn-long" /><span>&nbsp;&nbsp;&nbsp;</span>
            @*@Html.DropDownList("ExpertGroupID")*@
            <input type="submit" value="评语汇总" class="u-btn" />           
        </div>
    }
</div>
<div>
    @using (Html.BeginForm("ExportExpertResponses2Excel", "Comment", FormMethod.Post))
    {
        <label>学科组：</label>
        @Html.DropDownList("ExpertGroupID")
        <input type="submit" value="分项评语汇总" class="u-btn" />
    }
</div>

<iframe id="myReport" width="100%" height="100%" scrolling="no" frameborder="0">

</iframe>

<script type="text/javascript">
     function GenerateReport() {
         var id = $("#SubjectID option:selected").val();
         //alert("GenerateReport"+id);
         @*document.getElementById("myReport").src = "@Url.Content("../../Reportsm/ArchiveScoresReportForm.aspx?subjectID=")" + id;*@
         document.getElementById("myReport").src = "@Url.Content("~/Reportsm/ArchiveScoresReportForm.aspx?subjectID=")" + id;
         document.getElementById("myReport").style.display = "block";
         document.getElementById("myReport").height = document.documentElement.clientHeight + 40;
     }
    function GenerateGradeReport() {
        var id = $("#SubjectID option:selected").val();
    @*document.getElementById("myReport").src = "@Url.Content("../../Reportsm/ArchiveScoresReportForm.aspx?subjectID=")" + id;*@
    document.getElementById("myReport").src = "@Url.Content("~/Reportsm/ArchiveGradeReportForm.aspx?subjectID=")" + id;
        document.getElementById("myReport").style.display = "block";
        document.getElementById("myReport").height = document.documentElement.clientHeight + 40;
    }
     function GenerateReportByExpGroup() {
         var id = $("#ExpertGroupID option:selected").val();
         //alert("GenerateReportByExpGroup" + id);
        @*document.getElementById("myReport").src = "@Url.Content("../../Reportsm/ArchiveScoresReportForm.aspx?subjectID=")" + id;*@
         document.getElementById("myReport").src = "@Url.Content("~/Reportsm/ArchiveScoresReportForm.aspx?expertGroupID=")" + id;
         //alert(document.getElementById("myReport").src);
         document.getElementById("myReport").style.display = "block";
         document.getElementById("myReport").height = document.documentElement.clientHeight + 40;
     }
</script>

